home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / netBoot / h / sunconfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-13  |  1.5 KB  |  74 lines

  1.  
  2. /*    @(#)sunconfig.h 1.1 86/09/27 SMI    */
  3.  
  4. /*
  5.  * Copyright (c) 1986 by Sun Microsystems, Inc.
  6.  */
  7.  
  8. /*
  9.  * Definitions that everybody needs to know
  10.  * most of this is crap left over from config.h
  11.  */
  12.  
  13. #define eq(a,b) (strcmp(a,b) == 0)
  14. #define TRUE 1
  15. #define FALSE 0
  16.  
  17. #define NORMAL 2
  18. #define INVISIBLE 3
  19.  
  20. #define TO_NEXUS -1
  21.  
  22. struct file_list {
  23.     char *f_fn;
  24.     int f_type;
  25.     struct file_list *f_next;
  26.     char *f_needs;
  27. };
  28.  
  29. struct    idlst {
  30.     char *id;
  31.     struct idlst *id_next;
  32. };
  33.  
  34. typedef char bool;
  35.  
  36. struct device {
  37.     int d_type;            /* CONTROLLER, DEVICE, UBA or MBA */
  38.     struct device *d_conn;        /* What it is connected to */
  39.     char *d_name;            /* Name of device (e.g. rk11) */
  40.     struct idlist *d_vec;        /* Interrupt vectors */
  41.     int d_addr;            /* Address of csr */
  42.     int d_unit;            /* Unit number */
  43.     int d_drive;            /* Drive number */
  44.     int d_slave;            /* Slave number */
  45. #define QUES    -1    /* -1 means '?' */
  46. #define    UNKNOWN -2    /* -2 means not set yet */
  47.     bool d_dk;            /* if init 1 set to number for iostat */
  48.     int d_flags;            /* Flags for device init */
  49.     struct device *d_next;        /* Next one in list */
  50. };
  51.  
  52. struct config {
  53.     char *c_dev;
  54.     char *s_sysname;
  55. };
  56.  
  57. struct cputype {
  58.     char *cpu_name;
  59.     struct cputype *cpu_next;
  60. } *cputype;
  61. struct opt {
  62.     char *op_name;
  63.     struct cputype *op_next;
  64. } *opt;
  65. char *ident, *ns(), *malloc(), *tc(), *qu();
  66. bool do_trace, seen_mba, seen_uba;
  67. struct device *connect();
  68. struct device *dtab;
  69. char errbuf[80];
  70. int yyline;
  71. struct file_list *ftab, *conf_list, *confp;
  72. char *PREFIX;
  73. int hz, timezone, hadtz, maxusers, dst;
  74.